Skip to content

fix(builtins): suppress rg line numbers by default (non-tty behavior)#857

Merged
chaliy merged 1 commit intomainfrom
fix/issue-848-rg-line-numbers
Mar 27, 2026
Merged

fix(builtins): suppress rg line numbers by default (non-tty behavior)#857
chaliy merged 1 commit intomainfrom
fix/issue-848-rg-line-numbers

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Mar 27, 2026

Summary

  • rg builtin now suppresses line numbers by default since bashkit output is always non-tty
  • Added support for -n/--line-number flag to explicitly enable line numbers
  • Added support for -N/--no-line-number flag to explicitly disable
  • Matches real ripgrep behavior when piped

Test plan

  • New rg spec tests covering default, -n, -N behaviors
  • Full spec test suite green
  • Clippy clean

Closes #848

@chaliy chaliy merged commit 0275002 into main Mar 27, 2026
23 checks passed
@chaliy chaliy deleted the fix/issue-848-rg-line-numbers branch March 27, 2026 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: rg builtin always includes line numbers even when piped

1 participant